/*
 * XML Type:  PresentmentGroupAccountInfoTransactionRequest
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.PresentmentGroupAccountInfoTransactionRequest
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML PresentmentGroupAccountInfoTransactionRequest(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class PresentmentGroupAccountInfoTransactionRequestImpl extends net.ofx.types.x2003.x04.impl.AbstractTransactionRequestImpl implements net.ofx.types.x2003.x04.PresentmentGroupAccountInfoTransactionRequest
{
    
    public PresentmentGroupAccountInfoTransactionRequestImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName USERID$0 = 
        new javax.xml.namespace.QName("", "USERID");
    private static final javax.xml.namespace.QName GROUPID$2 = 
        new javax.xml.namespace.QName("", "GROUPID");
    private static final javax.xml.namespace.QName ACCTINFORQ$4 = 
        new javax.xml.namespace.QName("", "ACCTINFORQ");
    
    
    /**
     * Gets the "USERID" element
     */
    public java.lang.String getUSERID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(USERID$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "USERID" element
     */
    public net.ofx.types.x2003.x04.IdType xgetUSERID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IdType target = null;
            target = (net.ofx.types.x2003.x04.IdType)get_store().find_element_user(USERID$0, 0);
            return target;
        }
    }
    
    /**
     * True if has "USERID" element
     */
    public boolean isSetUSERID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(USERID$0) != 0;
        }
    }
    
    /**
     * Sets the "USERID" element
     */
    public void setUSERID(java.lang.String userid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(USERID$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(USERID$0);
            }
            target.setStringValue(userid);
        }
    }
    
    /**
     * Sets (as xml) the "USERID" element
     */
    public void xsetUSERID(net.ofx.types.x2003.x04.IdType userid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IdType target = null;
            target = (net.ofx.types.x2003.x04.IdType)get_store().find_element_user(USERID$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.IdType)get_store().add_element_user(USERID$0);
            }
            target.set(userid);
        }
    }
    
    /**
     * Unsets the "USERID" element
     */
    public void unsetUSERID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(USERID$0, 0);
        }
    }
    
    /**
     * Gets the "GROUPID" element
     */
    public java.lang.String getGROUPID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(GROUPID$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "GROUPID" element
     */
    public net.ofx.types.x2003.x04.IdType xgetGROUPID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IdType target = null;
            target = (net.ofx.types.x2003.x04.IdType)get_store().find_element_user(GROUPID$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "GROUPID" element
     */
    public boolean isSetGROUPID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(GROUPID$2) != 0;
        }
    }
    
    /**
     * Sets the "GROUPID" element
     */
    public void setGROUPID(java.lang.String groupid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(GROUPID$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(GROUPID$2);
            }
            target.setStringValue(groupid);
        }
    }
    
    /**
     * Sets (as xml) the "GROUPID" element
     */
    public void xsetGROUPID(net.ofx.types.x2003.x04.IdType groupid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IdType target = null;
            target = (net.ofx.types.x2003.x04.IdType)get_store().find_element_user(GROUPID$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.IdType)get_store().add_element_user(GROUPID$2);
            }
            target.set(groupid);
        }
    }
    
    /**
     * Unsets the "GROUPID" element
     */
    public void unsetGROUPID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(GROUPID$2, 0);
        }
    }
    
    /**
     * Gets the "ACCTINFORQ" element
     */
    public net.ofx.types.x2003.x04.AccountInfoRequest getACCTINFORQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AccountInfoRequest target = null;
            target = (net.ofx.types.x2003.x04.AccountInfoRequest)get_store().find_element_user(ACCTINFORQ$4, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "ACCTINFORQ" element
     */
    public void setACCTINFORQ(net.ofx.types.x2003.x04.AccountInfoRequest acctinforq)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AccountInfoRequest target = null;
            target = (net.ofx.types.x2003.x04.AccountInfoRequest)get_store().find_element_user(ACCTINFORQ$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.AccountInfoRequest)get_store().add_element_user(ACCTINFORQ$4);
            }
            target.set(acctinforq);
        }
    }
    
    /**
     * Appends and returns a new empty "ACCTINFORQ" element
     */
    public net.ofx.types.x2003.x04.AccountInfoRequest addNewACCTINFORQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AccountInfoRequest target = null;
            target = (net.ofx.types.x2003.x04.AccountInfoRequest)get_store().add_element_user(ACCTINFORQ$4);
            return target;
        }
    }
}
